<template>
  <div id="start">
    <top></top>
    <div class="top">
      <img :src="require('@/assets/image/back.png')" alt="" />
      <span>Get Started</span>
    </div>
    <div class="tab">
      <el-table
        :data="tableData"
        style="width: 90%"
        height="650"
        stripe
        :header-cell-style="{
          background: '#3b465b',
          color: '#ffffff',
          border: '1px solid #2c3449',
        }"
      >
        <el-table-column
          prop="date"
          label="模型名称"
          width="348"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="name"
          label="模型标准输入参数"
          width="348"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="address"
          label="模型标注输出参数"
          width="348"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="address"
          label="模型输出绘图"
          width="348"
          align="center"
        >
        </el-table-column>
        <el-table-column label="在线运行" width="348" align="center">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row)" type="text" size="small"
              >运行</el-button
            >
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import top from "../../components/Top/top.vue";
export default {
  components: {
    top,
  },
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
        },
        {
          date: "2016-05-02",
          name: "王小虎",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
        },
        {
          date: "2016-05-02",
          name: "王小虎",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
        },
        {
          date: "2016-05-02",
          name: "王小虎",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
        },
      ],
    };
  },
  methods: {
    handleClick() {
      this.$router.push({
        path: "/home",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
#start {
  width: 100%;
  height: 900px;
  overflow: hidden;
  .top {
    width: 100%;
    position: relative;
    img {
      width: 90%;
      margin-left: 97px;
      margin-top: 20px;
    }
    span {
      position: absolute;
      top: 50%;
      left: 50%;
      color: white;
      font-size: 30px;
    }
  }
  .tab {
    width: 100%;
    height: 450px;
    margin-left: 97px;
  }
  ::-webkit-scrollbar {
    width: 10px;
    height: 8px;
    background-color: #3b465b;
  }
  ::v-deep .el-table--scrollable-x .el-table__body-wrapper {
    overflow-x: hidden;
  }
  ::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: aqua;
  }
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background: #3b465b;
  }
}
</style>